package com.android.fragmentdemo.defineviews
import android.content.Context
import android.util.AttributeSet
import android.view.View
import androidx.core.widget.NestedScrollView

class DefineNestedScrollView @JvmOverloads constructor(
    context: Context,
    attributeSet: AttributeSet? = null
) : NestedScrollView(context, attributeSet) {
    override fun measureChildWithMargins(
        child: View?,
        parentWidthMeasureSpec: Int,
        widthUsed: Int,
        parentHeightMeasureSpec: Int,
        heightUsed: Int
    ) {
//        super.measureChildWithMargins(
//            child,
//            parentWidthMeasureSpec,
//            widthUsed,
//            parentHeightMeasureSpec,
//            heightUsed
//        )
        child?.measure(parentWidthMeasureSpec, parentHeightMeasureSpec)
    }
}